<?php
namespace Resources\model;

class Session
{
   public $ID;
   public $TOPIC;
   public $SUMMIT_YEAR;
   public $MEDIUM;
   public $DURATION;
   public $SECTOR;
   public $OVERVIEW;
   public $REMARK;
   public $FK_SPEAKER_ID;
   /*update data*/
   /*    
       public $INSERT_USER_ID;
       public $UPDATE_USER_ID;
       public $INSERT_DATETIME;
       public $UPDATE_DATETIME;
       public $STATUS;
    */    
   public function exchangeArray($data)
   {
       $this->ID=(!empty($data['ID'])) ? $data['ID'] : null;
       $this->TOPIC=(!empty($data['TOPIC'])) ? $data['TOPIC'] : null;
       $this->SUMMIT_YEAR=(!empty($data['SUMMIT_YEAR'])) ? $data['SUMMIT_YEAR'] : null;
       $this->MEDIUM=(!empty($data['MEDIUM'])) ? $data['MEDIUM'] : null;
       $this->DURATION=(!empty($data['DURATION'])) ? $data['DURATION'] : null;
       $this->SECTOR=(!empty($data['SECTOR'])) ? $data['SECTOR'] : null;
       $this->OVERVIEW=(!empty($data['OVERVIEW'])) ? $data['OVERVIEW'] : 0;
       $this->REMARK=(!empty($data['REMARK'])) ? $data['REMARK'] : null;
       $this->FK_SPEAKER_ID=(!empty($data['FK_SPEAKER_ID'])) ? $data['FK_SPEAKER_ID'] : null;
       
    /* $this->INSERT_USER_ID=(!empty($data['INSERT_USER_ID'])) ? $data['INSERT_USER_ID'] : null;
       $this->UPDATE_USER_ID=(!empty($data['UPDATE_USER_ID'])) ? $data['UPDATE_USER_ID'] : null;
       $this->INSERT_DATETIME=(!empty($data['INSERT_DATETIME'])) ? $data['INSERT_DATETIME'] : null;
       $this->UPDATE_DATETIME=(!empty($data['UPDATE_DATETIME'])) ? $data['UPDATE_DATETIME'] : null;
       $this->STATUS=(!empty($data['STATUS'])) ? $data['STATUS'] : 1; //active=1 // inactive=0
     */     
   }
   /*binding functions*/
   public function getArrayCopy()
   {
       return get_object_vars($this);
   }
}

?>